//
//  Theme.h
//  BCommon
//
//  Created by baboy on 13-8-16.
//  Copyright (c) 2013年 baboy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define THEME_TEXT_FONT     [Theme fontForKey:@"text-font"]
#define THEME_TEXT_COLOR    [Theme colorForKey:@"text-color"]

#define THEME_TEXT_COMMENT_FONT     [Theme fontForKey:@"text-comment-font"]
#define THEME_TEXT_COMMENT_COLOR    [Theme colorForKey:@"text-comment-color"]
#define THEME_TEXT_COMMENT_SHADOW_COLOR    [Theme colorForKey:@"text-comment-shadow-color"]

#define THEME_LINE_COLOR [Theme colorForKey:@"line-color"]
#define THEME_LINE_TOP_COLOR [Theme colorForKey:@"line-top-color"]
#define THEME_LINE_BOTTOM_COLOR [Theme colorForKey:@"line-bottom-color"]
//tabbar
#define THEME_TAB_BAR_TITLE_COLOR [Theme colorForKey:@"tab-bar-title-color"]
#define THEME_TAB_BAR_TITLE_FONT [Theme fontForKey:@"tab-bar-title-font"]

#define THEME_TAB_BAR_TITLE_HL_COLOR [Theme colorForKey:@"tab-bar-title-high-light-color"]
#define THEME_TAB_BAR_TITLE_HL_FONT [Theme fontForKey:@"tab-bar-title-high-light-font"]
#define THEME_TAB_BAR_BG_IMAGE [Theme imageForKey:@"tab-bar-bg-image"]
#define THEME_TAB_BAR_BG_HL_IMAGE [Theme imageForKey:@"tab-bar-bg-high-light-image"]

// button
#define THEME_BTN_TITLE_FONT            [Theme fontForKey:@"button-title-font"]
#define THEME_BTN_TITLE_COLOR           [Theme colorForKey:@"button-title-color"]
#define THEME_BTN_TITLE_SHADOW_COLOR    [Theme colorForKey:@"button-title-shadow-color"]
#define THEME_BTN_BG_COLOR              [Theme colorForKey:@"button-background-color"]

#define THEME_BTN_TITLE_HIGHLIGHT_COLOR [Theme colorForKey:@"button-title-highlight-color"]
#define THEME_BTN_BG_HIGHLIGHT_COLOR    [Theme colorForKey:@"button-background-highlight-color"]



//导航栏
#define THEME_NAV_BAR_TITLE_COLOR          [Theme colorForKey:@"nav-bar-title-color"]
#define THEME_NAV_BAR_TITLE_FONT           [Theme fontForKey:@"nav-bar-title-font"]
#define THEME_NAV_BAR_TITLE_SHADOW_COLOR          [Theme colorForKey:@"nav-bar-title-shadow-color"]
#define THEME_NAV_BAR_BTN_TITLE_COLOR [Theme colorForKey:@"nav-bar-btn-title-color"]

#define THEME_NAV_BAR_BG_IMAGE  [Theme imageForKey:@"nav-bar-bg-image"]
#define THEME_VIEW_BG_COLOR    [Theme colorForKey:@"view-bg-color"]

// table
#define THEME_TABLE_CELL_TITLE_FONT     [Theme fontForKey:@"table-cell-title-font"]
#define THEME_TABLE_CELL_TITLE_COLOR    [Theme colorForKey:@"table-cell-title-color"]

#define THEME_TABLE_CELL_COMMENT_FONT     [Theme fontForKey:@"table-cell-comment-font"]
#define THEME_TABLE_CELL_COMMENT_COLOR    [Theme colorForKey:@"table-cell-comment-color"]


#define THEME_TABLE_CELL_CONTENT_FONT     [Theme fontForKey:@"table-cell-content-font"]
#define THEME_TABLE_CELL_CONTENT_COLOR    [Theme colorForKey:@"table-cell-content-color"]
#define THEME_TABLE_SECTION_FONT     [Theme fontForKey:@"table-cell-content-font"]
#define THEME_TABLE_SECTION_COLOR    [Theme colorForKey:@"table-cell-content-color"]


#define ThemeSectionViewBackground [Theme imageForKey:@"table-section-background"]
#define ThemeSectionViewTitleColor [Theme colorForKey:@"table-section-title-color"]


#define gNavBarBackButton       [Theme navBarButtonForKey:@"navigationbar-back-button"]
#define gPlayerPlayButton       [Theme buttonForKey:@"icon-play"]
#define ThemeNavBarBackButton(target,act) [Theme navBarButtonForKey:@"navigationbar-back-button" withTarget:(target) action:(act)]


@interface Theme : NSObject
+ (void)setup:(NSString *)theme;
+ (UIColor *) color:(NSString *)val;
+ (UIColor *) colorForKey:(NSString *)key;
+ (UIFont *)  fontForKey:(NSString *)key;
+ (UIImage *) imageForKey:(NSString *)key;
+ (int) intValueForKey:(NSString *)key;
+ (float) floatValueForKey:(NSString *)key;
@end



